export default {
    getOrderDataAll() {
        return reqGet.call(this, 'admin/orderlist/shopOrder')
    },
    getOrderDataOne(id) {
        return reqGet.call(this, 'admin/orderlist/orderDetail?id=' + id)
    },
    addOrder(data) {
        return reqPost.call(this, 'admin/orderlist/buy', data)
    },
    complain(data) {
        return reqPost.call(this, 'admin/complain', data)
    },
    pay(id) {
        return reqPost.call(this, 'admin/orderlist/pay', { id })
    },
    delOrder(id){
        return reqPost.call(this, 'admin/orderlist/'+ id )
    }
}
function reqGet(url) {
    return this.baseGet(url)
}
function reqPost(url, data) {
    return this.basePost(url, data)
}